package cn.fivestars.springcloud.payment.serivce.impl;

import cn.fivestars.springcloud.commons.entities.Payment;
import cn.fivestars.springcloud.payment.dao.PaymentDao;
import cn.fivestars.springcloud.payment.serivce.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author liangchenzhou1024@163.com
 * @date 2021/2/1
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int insert(Payment payment) {
        return paymentDao.insert(payment);
    }

    @Override
    public Payment selectById(Long id) {
        return paymentDao.selectById(id);
    }
}
